package Interface;
import utils.*;

public class Interface2 {
	static public void main(String[] args){
		AllAction a = new SuperDuck();
		a.canFly();
		a.canRun();
		a.canSwim();
	}
}

interface Action1{
	public void canRun();
}

interface Action2{
	public void canFly();
}

interface Action3{
	public void canSwim();
}

interface AllAction extends Action1, Action2, Action3{
	
}

abstract  class SuperAnimal implements AllAction{
	
}

class SuperDuck extends SuperAnimal{

	@Override
	public void canRun() {
		// TODO Auto-generated method stub
		Utils.println("SuperDuck canRun()");
	}

	@Override
	public void canFly() {
		// TODO Auto-generated method stub
		Utils.println("SuperDuck canFly()");
	}

	@Override
	public void canSwim() {
		// TODO Auto-generated method stub
		Utils.println("SuperDuck canSwim()");
	}
	
}
